<template>
  <el-menu
    :default-openeds="[]"
    style="min-height: 100%; overflow-x: hidden;overflow-y: hidden"
    background-color="rgb(48, 65, 86)"
    text-color="#fff"
    active-text-color="#ffd04b"
    :collapse-transition="false"
    :collapse="isCollapse"
    router
    @select="handleSelect"
  >
    <div style="height: 60px; line-height: 60px; text-align: center">
      <img
        src="../assets/logo.png"
        alt=""
        style="width: 20px; position: relative; top: 5px; right: 5px"
      />
      <b style="color: white" v-show="logoTextShow">法院辅助办案系统</b>
    </div>
    <el-menu-item index="/home/homepage">
      <template slot="title">
        <i class="el-icon-house"></i>
        <span slot="title">主页</span>
      </template>
    </el-menu-item>
    <el-submenu  index="1">
      <template slot="title">
        <i class="el-icon-suitcase"></i>
        <span slot="title">案件中心</span>
      </template>
      <el-menu-item-group>
        <el-menu-item index="/home/case">
          <template slot="title">
            <i class="el-icon-s-custom"></i>
            <span slot="title">我的案件</span>
          </template>
        </el-menu-item>
        <el-menu-item index="/home/collection">
          <i class="el-icon-folder"></i>
          <span slot="title">案件收藏</span>
        </el-menu-item>
        <el-menu-item index="/home/dealt">
          <template slot="title">
            <i class="el-icon-s-custom"></i>
            <span slot="title">待办事项</span>
          </template>
        </el-menu-item>
      </el-menu-item-group>
      </el-submenu>
      <el-submenu index="2">
      <template slot="title">
        <i class="el-icon-open"></i>
        <span slot="title">审签流程</span>
      </template>
      <el-menu-item-group>
        <el-menu-item index="/home/status">
          <template slot="title">
            <i class="el-icon-folder-checked"></i>
            <span slot="title">提交审核</span>
          </template>
        </el-menu-item>
      </el-menu-item-group>
      </el-submenu>
        <el-menu-item index="/home/charts">
          <template slot="title">
            <i class="el-icon-data-analysis"></i>
            <span slot="title">统计分析</span>
          </template>
        </el-menu-item>
        <el-submenu index="3">
          <template slot="title">
            <i class="el-icon-coin"></i>
            <span slot="title">应用管理</span>
          </template>
          <el-menu-item-group>
            <el-menu-item index="/home/ccode">
          <template slot="title">
            <i class="el-icon-collection"></i>
            <span slot="title">法律字典</span>
          </template>
        </el-menu-item>
          </el-menu-item-group>
        </el-submenu>
    <el-submenu index="4">
      <template slot="title">
        <i class="el-icon-menu"></i>
        <span slot="title">系统管理</span>
      </template>
      <el-menu-item-group>
        <el-menu-item index="/home/gmuser">
          <template >
            <i class="el-icon-s-custom"></i>
            <span slot="title">用户管理</span>
          </template>
        </el-menu-item>
        <el-menu-item index="/home/courtMag">
          <template slot="title">
            <i class="el-icon-office-building"></i>
          <span slot="title">机构管理</span>
          </template>
        </el-menu-item>
          <el-menu-item index="/home/workmanager">
          <template slot="title">
            <i class="el-icon-office-building"></i>
          <span slot="title">工作流管理</span>
          </template>
        </el-menu-item>
        <el-menu-item index="/file">
          <i class="el-icon-folder"></i>
          <span slot="title">文件管理</span>
        </el-menu-item>
        <el-menu-item index="/file">
          <i class="el-icon-tickets"></i>
          <span slot="title">日志管理</span>
        </el-menu-item>
        <el-menu-item index="/home/backup">
          <i class="el-icon-tickets"></i>
          <span slot="title">数据备份还原</span>
        </el-menu-item>
      </el-menu-item-group>
    </el-submenu>
  </el-menu>
</template>

<script>
export default {
  name: "Aside",
  props: {
    isCollapse: Boolean,
    logoTextShow: Boolean,
  },
  methods: {
    handleSelect(index) {
      // console.log(index)
      // console.log(this.$router.options.routes)
    },
  },
};
</script>

<style scoped>
</style>